import {
  PrimaryGeneratedColumn,
  CreateDateColumn,
  UpdateDateColumn,
  Column
} from 'typeorm'
import { EntityModel } from '@midwayjs/orm'

@EntityModel('ticket_source')
export class TicketSource {
  
  @PrimaryGeneratedColumn()
  id: number;

  @Column({
    comment: '工单来源描述',
    unique: true
  })
  content: string;

  @CreateDateColumn({
    comment: '创建时间'
  })
  create_at: Date;

  @UpdateDateColumn({
    comment: '更新时间'
  })
  update_at: Date;
}
